.class Lcom/nemustech/regina/ReginaLauncherSettings$9;
.super Ljava/lang/Object;
.source "ReginaLauncherSettings.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ReginaLauncherSettings;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ReginaLauncherSettings;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V
    .locals 0
    .parameter

    .prologue
    .line 276
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$9;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreferenceClick(Landroid/preference/Preference;)Z
    .locals 5
    .parameter "preference"

    .prologue
    const/4 v4, 0x1

    .line 279
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$9;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-static {v1}, Lcom/nemustech/regina/RUtils;->existBackupFile(Landroid/content/Context;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 280
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$9;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncherSettings$9;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    const v3, 0x7f0700e2

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v4}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;I)Landroid/widget/Toast;

    move v1, v4

    .line 309
    :goto_0
    return v1

    .line 286
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$9;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-static {v1}, Lcom/nemustech/regina/RUtils;->isSDCardPrepared(Landroid/content/Context;)Z

    move-result v1

    if-ne v1, v4, :cond_1

    .line 287
    new-instance v1, Landroid/app/AlertDialog$Builder;

    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncherSettings$9;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-direct {v1, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 288
    .local v0, alertDialog:Landroid/app/AlertDialog;
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$9;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->access$1300(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f0700c6

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 289
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$9;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->access$1300(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f0700da

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 290
    const/4 v1, -0x1

    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncherSettings$9;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-static {v2}, Lcom/nemustech/regina/ReginaLauncherSettings;->access$1300(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/content/Context;

    move-result-object v2

    const v3, 0x104000a

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/nemustech/regina/ReginaLauncherSettings$9$1;

    invoke-direct {v3, p0}, Lcom/nemustech/regina/ReginaLauncherSettings$9$1;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings$9;)V

    invoke-virtual {v0, v1, v2, v3}, Landroid/app/AlertDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 301
    const/4 v1, -0x2

    iget-object v2, p0, Lcom/nemustech/regina/ReginaLauncherSettings$9;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-static {v2}, Lcom/nemustech/regina/ReginaLauncherSettings;->access$1300(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/content/Context;

    move-result-object v2

    const/high16 v3, 0x104

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/nemustech/regina/ReginaLauncherSettings$9$2;

    invoke-direct {v3, p0}, Lcom/nemustech/regina/ReginaLauncherSettings$9$2;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings$9;)V

    invoke-virtual {v0, v1, v2, v3}, Landroid/app/AlertDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 307
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .end local v0           #alertDialog:Landroid/app/AlertDialog;
    :cond_1
    move v1, v4

    .line 309
    goto :goto_0
.end method
